﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RadarSim
{
    /// <summary>
    /// Interaction logic for StartUp.xaml
    /// </summary>
    public partial class StartUp : Window
    {
        public StartUp()
        {
            InitializeComponent();
        }

        private SolidColorBrush blue = new SolidColorBrush(Color.FromRgb(0x76,0x99,0xf3));
               

        private void selection1_MouseEnter(object sender, MouseEventArgs e)
        {
            mask1.Visibility = System.Windows.Visibility.Visible;
            mask2.Visibility = System.Windows.Visibility.Hidden;
            mask3.Visibility = System.Windows.Visibility.Hidden;

            img1.Height = 43;
            img1.Width = 43;
            img2.Height = 37;
            img2.Width = 37;
            img3.Height = 37;
            img3.Width = 37;

            img1.Opacity = 1;
            img2.Opacity = 0.37;
            img3.Opacity = 0.37;

            txt1.Foreground = Brushes.White;
            txt2.Foreground = blue;
            txt3.Foreground = blue;


            txt1.FontSize = 35;
            txt2.FontSize = 30;
            txt3.FontSize = 30;

            effect1.ShadowDepth = 3;
            effect2.ShadowDepth = 0;
            effect3.ShadowDepth = 0;
        }

        private void selection1_MouseLeave(object sender, MouseEventArgs e)
        {
            mask1.Visibility = System.Windows.Visibility.Hidden;

            img1.Height = 37;
            img1.Width = 37;
            img1.Opacity = 0.37;

            txt1.Foreground = blue;
            txt1.FontSize = 30;
            effect1.ShadowDepth = 0;
        }

        private void selection1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MainWindow main = new MainWindow();
            main.Show();
            this.Close();
        }

        private void selection2_MouseEnter(object sender, MouseEventArgs e)
        {
            mask1.Visibility = System.Windows.Visibility.Hidden;
            mask2.Visibility = System.Windows.Visibility.Visible;
            mask3.Visibility = System.Windows.Visibility.Hidden;

            img1.Height = 37;
            img1.Width = 37;
            img2.Height = 43;
            img2.Width = 43;
            img3.Height = 37;
            img3.Width = 37;

            img1.Opacity = 0.37;
            img2.Opacity = 1;
            img3.Opacity = 0.37;

            txt1.Foreground = blue;
            txt2.Foreground = Brushes.White;
            txt3.Foreground = blue;

            txt1.FontSize = 30;
            txt2.FontSize = 35;
            txt3.FontSize = 30;

            effect1.ShadowDepth = 0;
            effect2.ShadowDepth = 3;
            effect3.ShadowDepth = 0;
        }

        private void selection2_MouseLeave(object sender, MouseEventArgs e)
        {
            mask2.Visibility = System.Windows.Visibility.Hidden;

            img2.Height = 37;
            img2.Width = 37;
            img2.Opacity = 0.37;

            txt2.Foreground = blue;
            txt2.FontSize = 30;

            effect2.ShadowDepth = 0;
        }

        private void selection2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MainWindow main = new MainWindow();
            main.Show();
            this.Close();
        }

        private void selection3_MouseEnter(object sender, MouseEventArgs e)
        {
            mask1.Visibility = System.Windows.Visibility.Hidden;
            mask2.Visibility = System.Windows.Visibility.Hidden;
            mask3.Visibility = System.Windows.Visibility.Visible;

            img1.Height = 37;
            img1.Width = 37;
            img2.Height = 37;
            img2.Width = 37;
            img3.Height = 43;
            img3.Width = 43;

            img1.Opacity = 0.37;
            img2.Opacity = 0.37;
            img3.Opacity = 1;

            txt1.Foreground = blue;
            txt2.Foreground = blue;
            txt3.Foreground = Brushes.White;

            txt1.FontSize = 30;
            txt2.FontSize = 30;
            txt3.FontSize = 35;

            effect1.ShadowDepth = 0;
            effect2.ShadowDepth = 0;
            effect3.ShadowDepth = 3;
        }

        private void selection3_MouseLeave(object sender, MouseEventArgs e)
        {
            mask3.Visibility = System.Windows.Visibility.Hidden;


            img3.Height = 37;
            img3.Width = 37;
            img3.Opacity = 0.37;

            txt3.Foreground = blue;

            txt3.FontSize = 30;

            effect3.ShadowDepth = 0;
        }

        private void selection3_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MainWindow main = new MainWindow();
            main.Show();
            this.Close();
        }
    }
}
